<?php use_helper("Highslide") ?>
<?php use_helper("Javascript") ?>       
				<?php if($v->getPhotoPath()!=''):?>
				<div class="size11" style="float: left;  margin: 5px;  ">				
				 <?php  echo highslide('/uploads/material/gift/'.$v->getPhotoPath(), '/uploads/material/gift/thumbnail/'.$v->getPhotoPath(), $options = array()) ?>
				<center><?php echo $v->getItitle() ?></center>								
				<center>
				<?php if(sfContext::getInstance()->getRequest()->getParameter('id'))
				{
					$id_folder = sfContext::getInstance()->getRequest()->getParameter('id');
				}
				else 
				{
					$id_folder = sfConfig::get('app_folder_gift');
				}
				?>
				<?php echo sprintf("%01.0f", $v->getCost()) ?> <?php echo sfContext::getInstance()->getUser()->getCreditsToStr($v->getCost()) ?><br />
				<?php echo link_to(__('Положить в корзину'),'@gift_category?add_to_box='.$v->getId().'&id='.$id_folder)?>
				</center>				
				</div>				
				<?php endif ?> 		 